package net.betou.trade.main.dao.impl;

import net.betou.common.hibernate3.HibernateBaseDao;
import net.betou.trade.entity.main.Funds;
import net.betou.trade.main.dao.FundsDao;

import org.springframework.stereotype.Repository;

/**
 * @author 叶装装
 *
 */
@Repository
public class FundsDaoImpl extends HibernateBaseDao< Funds, Integer > implements FundsDao{

	@Override
	protected Class< Funds > getEntityClass( ) {
		return Funds.class;
	}

	public Funds findById( Integer id ) {
		Funds bean = get( id );
		return bean;
	}

	public Funds save( Funds bean ) {
		getSession().save(bean);
		return bean;
	}

}
